package com.sq.partner.manager.dao;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletResponse;

import com.sq.partner.manager.mybatis.model.NlifeCov;
import com.sq.partner.manager.mybatis.model.NlifeRisk;
import com.sq.partner.manager.util.Page;


/**
 *  
 * @author zzGuo@2015-11-10 for new life
 *
 */
public interface INlifeCovDao extends BaseDao{
	
	public boolean queryPrimaryRiskIsExist(String prodCode) throws Exception;
	
	public boolean queryPrimaryRiskIsExist1(String prodCode) throws Exception;
	
	public Integer queryPrimaryRiskIsExist3(String prodCode) throws Exception;
	
	public Page<NlifeCov> queryCovPageByCriteria(Page<NlifeCov> page) throws Exception;
	/**新意见险查询已配置的责任*/
	public Page<NlifeCov> queryCovPageByCriteria1(Page<NlifeCov> page) throws Exception;
	/**产品导出责任查询*/
	public List<Map<String, Object>>  impNlifeCov(Map<String, Object> map)throws SQLException;
	
	public boolean queryPrimaryRiskIsExist2(Map<String, String>map) throws Exception;
	
	public boolean saveCovInfo(NlifeCov nc) throws Exception;

	public boolean deleteCov(NlifeCov cov) throws Exception;
	
 	public boolean deleteCovInfoByProdCode(String prodCode) throws Exception;

 	public List<NlifeCov> queryItemsAndCovsInfoByPolicyId(String policyId) throws Exception;
 	
 	public String downloadCovExcel(String prodCode , HttpServletResponse resp) throws Exception;
 	
 	public List<NlifeCov> queryNlifeCovByMap(Map<String, Object> map) throws SQLException;
}
